package com.zmc.product.infrastructure.dao;

import com.zmc.common.vo.ProductSkuVo;
import com.zmc.product.infrastructure.bean.dto.GoodsSpuDto;
import com.zmc.product.infrastructure.bean.vo.GoodsEsVo;
import com.zmc.product.infrastructure.entity.CommodityGoodsSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品sku信息
 * 
 * @author zmc
 * @email 
 * @date 2024-10-14 18:43:35
 */
@Mapper
public interface CommodityGoodsSkuDao extends BaseMapper<CommodityGoodsSkuEntity> {

    List<GoodsSpuDto> pageGoodsSkuList(@Param("skuId")String skuId,@Param("name")String name,  @Param("start")int start, @Param("row") int row);

    int countGoodsSkuList(@Param("skuId")String skuId,@Param("name")String name);


    List<ProductSkuVo> selectBySkus(@Param("skuIds") List<String> skuIds);

    List<GoodsEsVo> getBySkuIds(@Param("skuIds") List<String> skuIds);

    void removeBySpuId(@Param("spuId") String spuId);

}
